import * as echarts from "echarts";

export default {
    legend: {
        show: true,
        right: 0,
        textStyle: {
            color: "rgba(249, 244, 244, 1)",
            fontSize: 13,
        },
    },
    tooltip: {
        trigger: "axis",
        axisPointer: {
            type: "shadow",
        },
    },
    grid: {
        left: "3%",
        right: "4%",
        bottom: "3%",
        containLabel: true,
    },
    xAxis: [
        {
            type: "category",
            data: [],
            axisTick: {
                alignWithLabel: true,
            },
        },
    ],
    yAxis: [
        {
            name: "万元",
            nameTextStyle: {
                color: "#fff",
                fontSize: 13,
                padding: [0, 36, 0, 0],
            },
            splitNumber: 3,
            type: "value",
            splitLine: {
                lineStyle: {
                    type: "dashed",
                    color: "rgba(151, 151, 151, 1)",
                },
            },
            axisLine: {
                show: true,
                lineStyle: {
                    type: "dashed",
                    color: "rgba(151, 151, 151, 1)",
                },
            },
        },
    ],
    series: [
        {
            name: "月交易额",
            type: "bar",
            barWidth: "60%",
            data: [],
            itemStyle: {
                color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
                    {
                        offset: 0,
                        color: "rgba(0, 252, 211, 1)",
                    },
                    {
                        offset: 1,
                        color: "rgba(0, 252, 211, 0)",
                    },
                ]),
            },
        },
    ],
}